a = (1, 2, 3)
print(a[0])

# 表格

r1 = {'name': 'bei0', 'age': 20, 'city': 'beijing'}
r2 = {'name': 'bei1', 'age': 21, 'city': 'shanhai'}
r3 = {'name': 'bei2', 'age': 22, 'city': 'guanzhou'}
r4 = {'name': 'bei3', 'age': 23, 'city': 'xiamen'}
r5 = {'name': 'bei4', 'age': 24, 'city': 'ningde'}

tb = [r1, r2, r3, r4, r5]
# 获取表头
bt = list(tb[0].keys())  # 表头转为列表
print(bt[0], bt[1], bt[2])  # 打印表表头
# 打印数值
for i in range(len(tb)):
    print(tb[i].get('name'), tb[i].get('age'), tb[i].get('city'))

a = {1, 3, 4, 5, 6}
b = {2, 3, 4, 5, 6}
c = a.intersection(b)
print(c)
d = a | b
print(d)
e = a & b
print(e)
f = a-b
print(f)
